package com.taijia.chapter3;

class FatherClass {
	public int value;

	public void f() {
		value = 100;
		System.out.println("Father class value: " + value);
	}
}

class ChildClass extends FatherClass {
	public int value;

	public void f() {
		super.f();
		value = 200;
		System.out.println("Child class value: " + value);
		System.out.println(value);
		System.out.println(super.value);
	}
}

public class TestInherit {
	public static void main(String[] args) {
		ChildClass cc = new ChildClass();
		cc.f();
	}
}
